﻿#region

using System;
using System.ComponentModel.DataAnnotations;

#endregion

namespace CuongHanh.Models
{
    public class BaseClass
    {
        [Key]
        public virtual int Id { get; set; }

        public virtual bool Inactive { get; set; }

        public virtual DateTime LastModified { get; set; }

        public void Delete()
        {
            Inactive = true;
            LastModified = DateTime.Now;
        }
    }

    public class BaseClass1
    {
        public virtual int Key1 { get; set; }

        public virtual int Key2 { get; set; }
    }

    public class BaseClass2
    {
        public virtual int Key1 { get; set; }

        public virtual int Key2 { get; set; }

        public virtual int Key3 { get; set; }
    }

    public class BaseClassMultiCache
    {
        [Key]
        public int Id { get; set; }

        public virtual int KeyObject { get; set; }

        public virtual int? KeyList { get; set; }

        public DateTime LastModified { get; set; }

        public bool Inactive { get; set; }
    }
}
